// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

// UI
import 'onsenui/css/onsenui.css';
import 'onsenui/css/onsen-css-components.css';
import VueOnsen from 'vue-onsenui';

// api
import api from './fetch/api'

// config
import * as constant from './config/constant';

// Utils
import * as BastUtils from './utils/BastUtils';

// 组件
// v-charts
import VCharts from 'v-charts';
// vue-awesome-picker
import AwesomePicker from 'vue-awesome-picker';
// vue-better-calendar
import VueBetterCalendar from 'vue-better-calendar';

Vue.config.productionTip = false;

Vue.prototype.api = api;
Vue.prototype.constant = constant;
Vue.prototype.BaseUtils = BastUtils;

Vue.use(VueOnsen);
Vue.use(VCharts);
Vue.use(AwesomePicker);
Vue.use(VueBetterCalendar);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
